package com.guijq.codesegment.callback;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2018/8/9/009
 */
public class TestCallBack {
    public void compute(int n, ComputeCallBack computeCallBack) {
        for (int i = 0; i < n; i++) {
            System.out.println(i);
        }
        computeCallBack.onComputeEnd();
    }
}
